package com.lecture.junit.tdd.example;

public interface IAccountRepository {

    public IAccount find(String name);
    
    // changes password for user with given name to new password
    public boolean changePassword(String name, String oldPassword, String newPassword);
    
    // returns true if new password is not same to specified amount of previous passwords
    public boolean isNewPasswordValid(String name, String password);
}
